//
//  BaseTableViewController.h
//  PigMarket
//
//  Created by 张敬 on 2019/7/24.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "BaseViewController.h"

NS_ASSUME_NONNULL_BEGIN

@interface BaseTableViewController : BaseViewController

@property (nonatomic,strong) UIButton *reloadBtn;  //重新加载按钮
@property (nonatomic,strong) UILabel *reloadLab;  //重新加载文本

@property (nonatomic, assign) NSInteger page;

@property (nonatomic, assign) BOOL isRefresh;
@property (nonatomic, assign) BOOL isLoadMore;


@property (nonatomic, strong) UITableView *tableView;

//局部更新TableView
- (void)localReloadTableViewBySection:(NSInteger)section;

//注册UItableViewCell
- (void)registerTableViewCell;

- (void)setupUI;

- (void)setupLayout;

- (void)initData;

//下拉刷新
- (void)refresh;

//上拉加载更多
- (void)loadMore;

//结束下拉刷新
- (void)endRefresh;

//结束上拉刷新
- (void)endLoadMore;

//没有更多数据
- (void)endLoadMoreMoData;

//重置数据
- (void)resetData;

//没有更多数据
- (void)loadNoData;

//错误数据
- (void)loadErrorData;


- (void)haveData;
- (void)noData;


- (void)setReloadBtnImageToError;
- (void)setReloadBtnImageToEmpty:(NSString *)emptyText;

@end

NS_ASSUME_NONNULL_END
